import { FC } from "react";
import { View } from "@tarojs/components";
import styles from "./index.module.less";

interface Props {
  text: string;
}

const Title: FC<Props> = ({ text, children }) => {
  return (
    <View className={styles["sestion-wrapper"]}>
      <View className={styles["title"]}>{text}</View>
      {children}
    </View>
  );
};

export default Title;
